<template lang="">
    <div>
        <div class="table-body-box">
            <div class="study-center-form">
                <el-form style="margin-left:60px;margin-top:25px;" :inline="true">
                    <el-form-item label="导师名称：">
                        <el-input
                        style="width:193px;"
                        clearable
                        size="small"
                        placeholder="请输入内容"
                        v-model="teacherName">
                        </el-input>
                    </el-form-item>
                </el-form>
                <div class="btn-box">
                    <el-button type="primary" @click="searchList(1,10)" :loading="searchLoading" size="small">查询</el-button>
                </div>
            </div>
            <div class="study-center-table">
                <el-table 
                height="70vh"
                :data="tableData" 
                style="width: 100%" 
                row-class-name="greyRow"
                :header-cell-style="{background:'#4787E3',color:'#ffffff'}">
                  <el-table-column prop="teaName" label="导师名称" align="center">
                  </el-table-column>
                  <el-table-column prop="stuName" label="徒弟名称" align="center">
                  </el-table-column>
                  <el-table-column prop="teaEvaUrl"  label="导师评价下载" align="center">
                      <template slot-scope="scope">
                          <span v-if="scope.row.teaEvaUrl">
                              <a style="text-decoration:underline;color: #4787E4 !important;" :href="scope.row.teaEvaUrl" download="" target="_blank">下载</a>
                          </span>
                      </template>
                  </el-table-column>
                  <el-table-column prop="stuEvaUrl" label="徒弟评价下载" align="center">
                      <template slot-scope="scope">
                            <span v-if="scope.row.stuEvaUrl">
                                <a style="text-decoration:underline;color: #4787E4 !important;" :href="scope.row.stuEvaUrl" download="" target="_blank">下载</a>
                            </span>
                      </template>
                  </el-table-column>
                </el-table>
                <div class="study-center-pagination flex-row">
                  <pagination 
                    @pageTurnNum="pageNum" 
                    @pageTurnSize="pageSizeNum" 
                    :total="total"></pagination>
                </div>
            </div>
        </div>
        <el-dialog
        title="查看申请"
        :visible.sync="checkApply"
        width="800px"
        :before-close="handleClose">
        <div class="class-detail-box">
            <div class="tips-box">
                <div class="class-tips">开课详细信息</div>
            </div>
            <div>
                <el-form 
                style="text-align:center;"
                label-width='100px'
                :inline="true">
                    <el-form-item style="margin-bottom: 10px" label="课程名称：">
                        <el-input
                        readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.title">
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="课程说明：">
                       <el-input
                       readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.smallTitle">
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="时长：">
                       <el-input
                        class="class-time-lines"
                        readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.courseTime">
                        <div slot="append">min</div>
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="日期：">
                       <el-input
                        readonly
                        clearable
                        size="small"
                        placeholder="请输入内容"
                        v-model="qryCourseByIdObj.date">
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="时间：">
                       <el-input
                        readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.time">
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="地点：">
                       <el-input
                        readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.address">
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="人数限制：">
                       <el-input
                        readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.num">
                        </el-input>
                    </el-form-item>
                    <el-form-item style="margin-bottom: 10px" label="课程类别：">
                       <el-input
                        readonly
                        clearable
                        size="small"
                        v-model="qryCourseByIdObj.courseDept">
                        </el-input>
                    </el-form-item>
                    <div style="text-align:left;padding-left:53px;">
                        <el-form-item label="是否公开：">
                            <el-switch style="width:208px;" disabled v-model="qryCourseByIdObj.flag"></el-switch>
                        </el-form-item>
                    </div>    
                    <!-- <el-form-item label="是否推荐：">
                        <el-switch style="width:208px;" disabled v-model="qryCourseByIdObj.isGood"></el-switch>
                    </el-form-item> -->
                    <div style="margin-top:20px;">
                        <el-form-item label="课程简介：" prop="desc">
                            <el-input disabled style="width:555px;height:100px !important;" readonly type="textarea" v-model="qryCourseByIdObj.introduce"></el-input>
                        </el-form-item>
                    </div>
                </el-form>
            </div>
        </div>
        <div style="text-align:center;padding:36px 0 26px 0;">
          <span slot="footer"  class="dialog-footer">
              <el-button size="small" :loading="disagree"  @click="apply(0)">驳 回</el-button>
              <el-button size="small" :loading="agree" type="primary" @click="apply(1)">同 意</el-button>
          </span>
        </div>
        </el-dialog>
    </div>
</template>
<script src="./studyjs/courseAssess.js"></script>
<style lang="less" scoped>
@import url("~@/pagecss/studyCenter");
@import url("~@/pagecss/classApply");
.class-tips{
    font-size: 16px;
}
</style>